<template>
  <div class="container">
    <h1 class="title">vite-vue3-templete</h1>
    <div class="main">
      <ul class="left">
        <router-link class="item" tag="li" to="/home">家</router-link>
        <router-link class="item" tag="li" to="/about">关于</router-link>
      </ul>
      <div class="right">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
</script>

<style>
@import '@/style/global.css';

.container {
  width: 100%;
  /* height: 1000px; */
}
.title {
  height: 60px;
  font-size: 40px;
  text-align: center;
}
.main {
  border-top: 1px solid red;
  height: 900px;
}
.main .left {
  height: 100%;
  background: skyblue;
  width: 120px;
  float: left;
  margin-right: 30px;
}
.main .left > .item {
  display: block;
  height: 60px;
  line-height: 60px;
  text-align: center;
}
</style>
